home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
OBSKIT.ARJ
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-01-11
|
5KB
|
124 lines
echo off
rem INSTALL.BAT
rem
rem Install program for Obs Toolkit Version 1.5
rem
rem ObsRes will not work with NDOS or 4DOS!
rem Use the xDOS.CFG file instead.
rem
rem Obs Toolkit is Shareware!
rem
rem Contrails, Inc.
rem P.O. Box 2759
rem Lompoc, CA 93438-2759
rem (805) 733-2808
rem
echo ╓───────────────────────────────────────────────────────────────╖
rem ║ ║
echo ║ ╔══════════════════════╗ ║
echo ║ ║Welcome to Obs Toolkit╟┐ ║
echo ║ ╚╤═════════════════════╝│ ║
echo ║ │ Version 1.5 │ ║
echo ║ └──────────────────────┘ ║
echo ║ ║
echo ║ Obs Toolkit can significantly enhance your ║
echo ║ o command line o toolchest o batch files ║
echo ║ ║
echo ╠═══════════════════════════════════════════════════════════════╣
echo ║ This installation routine will ║
echo ║ o save your current AUTOEXEC.BAT to AUTOEXEC.1B4 ║
echo ║ o install ObsRes (resident alias translator and DirStack) ║
echo ║ o install RECursive aliases ║
echo ║ -- define the OB alias ║
echo ║ -- save the aliases into ALIASES.FIL ║
echo ║ o append to your AUTOEXEC.BAT ║
echo ║ -- [obs_path]\obsres ║
echo ║ -- [obs_path]\alias /file [obs_path]\aliases.fil ║
rem ╠═══════════════════════════════════════════════════════════════╣
rem ║ Thank you for installing Obs Toolkit ║
rem ║ ║
rem ║ ╔═════════════════╗ ║
rem ║ ║Support Shareware╟┐ ║
rem ║ $39.00 ╚╤════════════════╝│ $39.00 ║
rem ║ └─────────────────┘ ║
rem ║ ║
rem ║ ┌─────────┐ ║
rem ║ ┌─────┴───┐ │ (R) ║
rem ║ ──│ │o │────────────────── ║
rem ║ │ ┌─────┴╨──┐ │ Association of ║
rem ║ │ │ │─┘ Shareware ║
rem ║ └───│ o │ Professionals ║
rem ║ ──────│ ║ │──────────────────── ║
rem ║ └────╨────┘ MEMBER ║
rem ║ ║
echo ╙───────────────────────────────────────────────────────────────╜
echo
if not exist obsres.com goto wrong_dir
for %%f in (alias.exe aliases.rec fd.exe) do if not exist %%f goto missing
for %%f in (ocd.exe lf.exe mf.exe ee.exe) do if not exist %%f goto missing
for %%f in (locate.exe ds.exe) do if not exist %%f goto missing
echo To abort this installation press "Ctrl-C" otherwise
pause
rem Install ObsRes (if it isn't already)
obsres
rem Load in the RECursive alias definition file
alias /clear /file aliases.rec
if errorlevel 6 goto terminate
rem Save the users current autoexex.bat
if not exist c:\autoexec.bat goto no_autoexec
mf /c c:\AUTOEXEC.BAT c:\AUTOEXEC.1B4
:no_autoexec
rem Create an environment, just for us. Don't want to use the current
rem environment, it may not have enough space
rem Save the users current environment, then clear it out
ee /save env.fil /clear
rem save the current directory into the environment variable 'dir'
ee /make dir
rem see if we need to add a slash
if exist %dir%aliases.rec goto continue
ee /append \ dir
:continue
rem Creat the OB alias
alias /make ob
rem Write out a custom alias definition file with OB defined
alias > %dir%aliases.fil
rem Add the ObsRes and Alias load commands to the AUTOEXEC.BAT
echo %dir%obsres >> c:\autoexec.bat
echo %dir%alias /file %dir%aliases.fil >> c:\autoexec.bat
rem Clear out our temporary environment, and restore the previous
ee /clear /load env.fil
rem Delete the temporary environment file
mf /d env.fil
echo Installation complete
goto done
:wrong_dir
echo *** ERROR ***
echo You must be located in the Toolkit directory!
goto terminate
:missing
echo *** ERROR ***
echo All "required" Toolkit files are not present in this directory!
goto terminate
:terminate
echo Installation terminated
goto done
:done
echo